<?php

 include_once '../includes/session.php';
 include_once '../includes/constants.php';
 include_once '../includes/functions.php';

 $partners=new partners;
 $partners->connection($host,$user,$pass,$db);

if($Act=="referer_report" or $Act=="link_report" or $Act=="product_report") $body_onload = "onLoad='LoadPrgms();'";

 ?>
	
			<table width="100%"  border='0' cellspacing="0" cellpadding="0">
          	<tr>
            	<td width="216"><img src="images/admin_01.gif" width="216" height="69" alt="" /></td>
            	<td height="69" align="right" valign="middle">

              <?php

               if($partners->islogin())
				 {
                   //geting records from table
                   $sql ="select * from admin_pay";
                   $ret =mysql_query($sql);
                   //checking for each records
                   if(mysql_num_rows($ret)>0)
                   {
                           while($row=mysql_fetch_object($ret))
                           {
                                  $admin_pay=$row->pay_amount;
                            }
                   }
				?>

	                    <table width="300" border="1" cellpadding="0" cellspacing="0" class="hdbdr">
	                    	<tr class= "tdheader">
			                    <td><div align="center" class="style2">Payment</div></td>
		                        <td><div align="center"><span class="style3">&nbsp;</span></div></td>
		                    </tr>
		                    <tr>
			                    <td align="center" valign="top"><span class="style3"><?=$currSymbol?><?=round($admin_pay,2)?></span>
									<span class="style1"><br/>
									<? if($userobj->GetAdminUserLink('Payment History',$adminUserId,0)) {  ?>
										<a href="index.php?Act=payment_list" class="Ta">Payment History</a>
									<? } ?>
									</span>
								</td>
	                    		<td><div align="center"><span class="style1"><br/>
	                    			<a href="index.php?Act=transaction" class="Ta">Transactions</a></span></div>
								</td>
	                    	</tr>
	                    </table>

               <?php
                	}
				?>

            	</td>
          	</tr>
        </table>
